<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html>
  <head>
    <base href="<%=basePath%>">

        <title>Your Admin Panel</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

        
        <!-- jQuery AND jQueryUI -->
        <script type="text/javascript" src="js/jquery.min.js"></script>
        <script type="text/javascript" src="js/jquery-ui.min.js"></script>
       
        <link rel="stylesheet" href="css/chenwenjing/min.css" />
        <script type="text/javascript" src="js/min.js"></script>
        <script type="text/javascript">
	function hello(){
		var date = new Date();
		var y = date.getFullYear();
		var m = date.getMonth();
		var d = date.getDate();
		var h = date.getHours();
		var mm = date.getMinutes();
		var s = date.getSeconds();
	
		if(h>0&&h<=12){
			document.getElementById("show").innerHTML="上午好！";	
		}else if(h>12&&h<=18){
			document.getElementById("show").innerHTML="下午好！";
		}else{
			document.getElementById("show").innerHTML="晚上好！";	
		}	
		document.getElementById("print").innerHTML=y+"年"+(m+1)+"月"+d+"日 "+h+":"+mm+":"+s;
	}
</script>
    </head>
    <body onload="setInterval('hello()',1000)"> 
        <!-- HEAD --> 
        
        <div id="head">
            <div class="left">&nbsp;&nbsp;&nbsp;
                欢迎回来!&nbsp;&nbsp;&nbsp;<a href="#">${user.name }</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="users/loginout.do" target="_parent">退出</a>
            </div>
            <div id="print" style="float: right;margin-right:30px;font-weight:bold;"></div>
            <div id="show" style="float: right;font-weight:bold;"></div>
    		
            
        </div>       
    </body>
</html>